package cn.zebra.dev.common.thread.utils;

/**
 * 线程工具类
 *
 * @author runnable@sina.cn
 */
public class ThreadUtils {

    private static final int AVAILABLE_PROCESSORS = Runtime.getRuntime().availableProcessors();

    /**
     * 取CPU的数目
     *
     * @return CPU的数目
     */
    public static int getAvailableProcessors() {
        return AVAILABLE_PROCESSORS;
    }
}
